package cn.edu.huanu.servletlearn;

import jakarta.servlet.ServletException;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;

/**
 * @author hb
 * @date 2025-09-26 15:26:56
 */
@WebServlet("/login")
public class LoginServlet extends HttpServlet {

    /**
     * 处理get请求
     * @param request
     * @param resp
     * @throws ServletException
     * @throws IOException
     */
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse resp) throws ServletException, IOException {
         //通过request对象获得请求参数
        String sid=  request.getParameter("id");
        System.out.println("sid="+sid);
    }
}
